<template>
  <el-container>
    <el-aside>
      <left-panel></left-panel>
    </el-aside>
    <el-container>
      <el-header>
        <img id="logo" src="~@/assets/logo.png" alt="electron-vue">
      </el-header>
      <el-main id="mainContainer">
        <div class="main-container">
        <span class="title">
          Welcome to your new project!
        </span>
          <system-information></system-information>
        </div>
      </el-main>
      <el-footer>
        // 底部内容
      </el-footer>
    </el-container>
  </el-container>
</template>

<script>
  import SystemInformation from './LandingPage/SystemInformation'
  import LeftPanel from './LandingPage/LeftPanel'

  export default {
    name: 'landing-page',
    components: { SystemInformation, LeftPanel },
    methods: {
      open (link) {
        this.$electron.shell.openExternal(link)
      }
    }
  }
</script>

<style>
  @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body { font-family: 'Source Sans Pro', sans-serif; }

  #logo {
    height: auto;
    margin-bottom: 20px;
    width: 420px;
  }

  main {
    display: flex;
    justify-content: space-between;
  }

  main > div { flex-basis: 50%; }

  .left-side {
    display: flex;
    flex-direction: column;
  }

  .welcome {
    color: #555;
    font-size: 23px;
    margin-bottom: 10px;
  }

  .title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
  }

  .title.alt {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .doc p {
    color: black;
    margin-bottom: 10px;
  }

  .doc button {
    font-size: .8em;
    cursor: pointer;
    outline: none;
    padding: 0.75em 2em;
    border-radius: 2em;
    display: inline-block;
    color: #fff;
    background-color: #4fc08d;
    transition: all 0.15s ease;
    box-sizing: border-box;
    border: 1px solid #4fc08d;
  }

  .doc button.alt {
    color: #42b983;
    background-color: transparent;
  }
  #leftPanel {
    border-right: 1px solid gray;
    width: 200px;
    height: 100vh;
    float: left;
  }
  #mainContainer {
    height: 90vh;
    border: 1px solid gray;
  }
</style>
